package org.dse.beans;

/**
 * This class represents the webgraph table in the database. It is used as an
 * O-R mapping bean.
 * 
 * The fields in the class are corresponding with the column in database table.
 * Like toLinks, and a foreign key pointing to the htmldocument table. The
 * methods are only setters and getters.
 * 
 * @author zhangchen
 * 
 */
public class Webgraph implements java.io.Serializable {

	private static final long serialVersionUID = 2670151105099308726L;

	// Fields
	private Integer id;

	private HtmlDocument htmlDocument;

	private String toLinks;

	// Property accessors
	/**
	 * Get the id.
	 * 
	 * @return an integer representing the id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * Set the id.
	 * 
	 * @param id
	 *            the value to be set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * Get the html document pointed to.
	 * 
	 * @return an object representing the htmldocument bean
	 */
	public HtmlDocument getHtmlDocument() {
		return this.htmlDocument;
	}

	/**
	 * Set the html document pointed to.
	 * 
	 * @param htmldocument
	 *            the object to be set
	 */
	public void setHtmlDocument(HtmlDocument htmlDocument) {
		this.htmlDocument = htmlDocument;
	}

	/**
	 * Get the to links.
	 * 
	 * @return a string representing the hyperlinks the document has
	 */
	public String getToLinks() {
		return this.toLinks;
	}

	/**
	 * Set the to links.
	 * 
	 * @param toLinks
	 *            the value to be set
	 */
	public void setToLinks(String toLinks) {
		this.toLinks = toLinks;
	}
}